<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
     <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
</head>

<body style="color:#333;padding:3px;overflow-x: auto;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">所属TI费用已核销明细查询</h1>
    </div>
    <!-- 标题 -->
    <div class="row-margin-top">
    <form action="#" method="post" id="form_check" class="form-inline formpage">
     <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
      <table class="row-margin-top tab-content table-bordered  table" border="1">
          <tr>
            <td><label for="" class="form-label">核销面单编号</label></td>
            <td><input type="text" class="form-control" name="no" value="{$data.no}"></td>
            <td><label for="" class="form-label">经销商名称</label></td>
            <td><input type="text" class="form-control" name="jxs" value="{$data.jxs}"></td>
            <td><label for="" class="form-label">网店名称</label></td>
            <td><input type="text" class="form-control" name="net" value="{$data.net}"></td>
            </tr>
             <tr>
            <td><label for="" class="form-label">支付方式</label></td>
            <td><input type="text" class="form-control" name="pay" value="{$data.pay}"></td>
            <td><label for="" class="form-label">三级费用科目</label></td>
            <td><input type="text" class="form-control" name="kemu" value="{$data.kemu}"></td>
            <td><label for="" class="form-label">申请人</label></td>
            <td><input type="text" class="form-control" name="ename" value="{$data.ename}"></td>
            </tr>
           <tr>
           <td><div class="form-group" >
                申请时间
            </div></td>
            <td colspan="5">
                 <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="width: 80px;min-width: 80px; height: 26px;display: inline-block;" name="start" value="{$data.start}">
           </div>
            <div class="form-group">
                至
            </div>
           <div class="form-group">
             <input type="text" class="form-control layer-date" style="width: 100px;min-width: 100px; height: 26px;display: inline-block;" id="end" name="end" value="{$data.end}">
           </div>
            </td>
             
           </tr>
           <tr>
            <td colspan="6" class="text-center">
               <button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
                    <button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
              <button class="btn btn-info LendExcel" type="button">导出Excel</button>
            </td>
            </tr>
      </table>
    <table class="table-bordered table">
        <tr>
            <th>
              批复金额合计: <span class="font-bold ObjectNum">{$pizhun}</span>&nbsp;&nbsp;  
             
              未税核销金额合计: <span class="font-bold ObjectNum">{$weishui}</span> &nbsp;&nbsp;
              税金核销合计: <span class="font-bold ObjectNum">{$shuijin}</span> &nbsp;&nbsp;
              含税核销金额合计: <span class="font-bold ObjectNum">{$hanshui}</span> &nbsp;&nbsp;
             实际核销金额合计: <span class="font-bold ObjectNum">{$shiji}</span> 
            </th>
          </tr>
   </table>
      <table class="table table-bordered text-center" id="verifytable">
          <tr class="info text-center">
            <th rowspan="2" class="text-center" style="min-width: 80px;width: 80px">序号</th>
            <th rowspan="2" class="text-center" style="min-width: 100px;width: 100px">申请人</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">核销面单编号</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">核销明细编号</th>
            <th rowspan="2" class="text-center" style="min-width: 120px;width: 120px">申请类型</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">原申请单号</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">原申请明细编号</th>
            <th rowspan="2" class="text-center" style="min-width: 180px;width: 180px">经销商名称</th>
            <th rowspan="2" class="text-center" style="min-width: 180px;width: 180px">系统名称</th>
            <th rowspan="2" class="text-center" style="min-width: 180px;width: 180px">网点名称</th>
            <th rowspan="2" class="text-center" style="min-width: 100px;width: 100px">品牌</th>
            <th rowspan="2" class="text-center" style="min-width: 100px;width: 100px">品类</th>
            <th rowspan="2" class="text-center" style="min-width: 100px;width: 100px">系列</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">SKU</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">单品</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">一级科目</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">二级科目</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">三级科目</th>
            <th rowspan="2" class="text-center" style="min-width: 140px;width: 140px">支付方式</th>
            <th colspan="3" class="text-center">实际投入</th>
             <td colspan="8" class="text-center">本次申请核销</td>
           
            <td style="min-width: 100px" rowspan="2">活动开始日期</td>
            
            <td style="min-width: 120px" rowspan="2">备注</td>
          </tr>
          <tr class="info">
            <th class="text-center" style="min-width: 120px">实际投入金额</th>
            <th class="text-center" style="min-width: 120px">已核销金额</th>
            <th class="text-center" style="min-width: 120px">未核销金额</th>
            <th class="text-center" style="min-width: 120px">未税核销金额</th>
            <td class="text-center" style="min-width: 120px">有无发票</td>
            <td class="text-center" style="min-width: 120px">发票号</td>
            <td class="text-center" style="min-width: 120px">是否增值税<br>(可抵扣)</td>
            <td class="text-center" style="min-width: 120px">税率</td>
            <td class="text-center" style="min-width: 120px">税金</td>
            <td class="text-center" style="min-width: 120px">含税核销金额</td>
            <td class="text-center" style="min-width: 120px">实际投入金额</td>
          </tr>
          <tbody>
          {volist name="apply" id="vo"}
                <tr>
                    <td>{$i}</td>
                    <td>{$vo.em_name}</td>
                    <td><a href="{:url('Tihexiao/view',['id'=>$vo.id])}" class="J_menuItem">{$vo.sn}</a></td>
                    <td>{$vo.sn}-{$vo.dsn}</td>
                    <td>{if $vo.type_id==0}非常规促销{elseif $vo.type_id==1}进场费用{else/}常规促销{/if}</td>
                    <td>{if $vo.type_id==0}<a class="J_menuItem" href="{:url('ti_apply2/view',['id'=>$vo.apid])}">{elseif $vo.type_id==1}<a class="J_menuItem"  href="{:url('Tijinchang/view',['id'=>$vo.apid])}">{else/}<a class="J_menuItem"  href="{:url('ti_apply/apply_de',['aid'=>$vo.apid])}">{/if}{$vo.apsn}</a></td>
                    <td>{$vo.apsn}_{$vo.apdsn}</td>
                    <td>{$vo.jxs}</td>
                    <td>{$vo.xt}</td>
                    <td>{$vo.net}</td>
                    <td>{$vo.brand}</td>
                    <td>{$vo.category}</td>
                    <td>{$vo.series}</td>
                    <td>{$vo.sku}</td>
                    <td>{$vo.product}</td>
                    <td>{$vo.kemu1}</td>
                    <td>{$vo.kemu2}</td>
                    <td>{$vo.kemu3}</td>
                    <td>{$vo.pay}</td>
                    <td class="ObjectNum text-right">{$vo.fb_shijiweishui}</td>
                    <td class="ObjectNum text-right">{$vo.hx_yihexiao}</td>
                    <td class="ObjectNum text-right">{$vo.hx_wsq}</td>
                    <td class="ObjectNum text-right">{$vo.weishuihexiaojine}</td>
                    <td>{if $vo.youwufapiao==1}有{else/}无{/if}</td>
                    <td>{$vo.fapiaohao}</td>
                    <td>{if $vo.shizengzhishui==1}是{else/}否{/if}</td>
                    <td class="text-right"><span class="ObjectNum">{$vo.shuilv}</span>%</td>
                    <td class="ObjectNum text-right">{$vo.shuijin}</td>
                    <td class="ObjectNum text-right">{$vo.hanshuihexiaojine}</td>
                    <td class="ObjectNum text-right">{$vo.shijihexiaojine}</td>
                    <td>{$vo.start}</td><td>{$vo.beizhu}</td>
                </tr>
          {/volist}
              
            
          </tbody>
      </table>
      <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
                        每页显示
           <select id="pagesize">
                        <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>

            </select>
        </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
     <script src="__STATIC__/layout/js/common.js"></script>
     <script src="__STATIC__/layout/js/contabs_sub.js"></script>
    <script>
    $(".LendExcel").click(function(){
      window.open("{:url('hashexiaolistdc')}")
    })

        $("#check").click(function(){
              
             $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            //$("#state").val(0);
            $(".formpage").submit();
        })
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            //min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            //min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        $(document).ready(function(){
            // $("#verifytable tbody tr td").find('.duigou')
          /*格式化数字金额*/
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
          /*为已生效的核销申请字体加粗*/
            var $duigou =$(".duigou");
             $duigou.parent().addClass("font-bold");
    
        })
         
    </script>
</body>

</html>
